import request from '../utils/request';

// 获取排班列表
export function getListOfficeTable(data) {
    return request({
        url: '/OfficeTable/getListOfficeTable?pageNum=' + data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}

// 保存排班信息
export function addPersonalOfficeTable(data) {
    return request({
        url: '/OfficeTable/addPersonalOfficeTable',
        method: 'post',
        data: data
    });
}
// 删除排班信息
export function delOfficeTable(data) {
    return request({
        url: '/OfficeTable/delOfficeTable',
        method: 'post',
        data: data
    });
}

// 根据id查询排班信息
export function getOfficeTableInfo(data) {
    return request({
        url: '/OfficeTable/getOfficeTableInfo?id='+data,
        method: 'get'
    });
}

// 根据id查询排班状态
export function getJobState(data) {
    return request({
        url: '/OfficeTable/getJobState',
        method: 'post',
        data:data
    });
}
// 根据排班id修改排班信息
export function updateOfficeTable(data) {
    return request({
        url: '/OfficeTable/updateOfficeTable',
        method: 'post',
        data:data
    });
}
// 根据排班id修改排班信息
export function downloadOfficeTable(data) {
    return request({
        url: '/OfficeTable/downloadOfficeTable',
        method: 'post',
        data:data
    });
}